package com.DataFactory.TaskManagement.common.exception;

import com.DataFactory.TaskManagement.common.result.IResultCode;

/**
 * @author shumm
 * @Description 任务编排异常
 * @since 2024-03-29 10:09
 */
public class TaskArrangementException extends RuntimeException{
    public IResultCode errorCode;

    public TaskArrangementException(IResultCode errorCode){
        super(errorCode.getMsg());
        this.errorCode = errorCode;
    }
    public TaskArrangementException(String message){
        super(message);
    }
}
